
************************************************************************************************************************
*** TABLE- DIFFERENCES BETWEEN ENTRREPENEURS BY TERCILE:
*		The following code has been modified in order to produce a summary table displaying the differences 
*		between entrepreneours by tercile for the male and female subsamples separaltely. 
************************************************************************************************************************
		
		forvalues i=1/3{
		gen Winner_Quint_T_`i'=Winner2*Quint_Rank_NS_Tercile_`i'
		}
		
		baltest3 if Survey_Version==1 & Gender_Followup == 1 , ///
		panela($panela1) ///
		panelb($panelb1) ///
		panelc($panelc1) ///
		paneld($paneld1) ///
		prehead1($prehead1) ///
		prehead2($prehead2) ///
		treatment( Winner_Quint_T_3  Winner_Quint_T_2  Winner_Quint_T_1) ///
		table("${outtex}${date}_Differences_by_Tercile_male.tex")  ///
		type(tex) ///
		title("Replicates Table A17 in Hussam et al. (2022b): Sample Restricted to Male Entrepreneurs") lab(chartopranked_male)	
		
		baltest3b if Survey_Version==1 & Gender_Followup == 0 , ///
		panela($panela1) ///
		panelb($panelb1) ///
		panelc($panelc1) ///
		paneld($paneld1) ///
		prehead1($prehead1) ///
		prehead2($prehead2) ///
		treatment( Winner_Quint_T_3  Winner_Quint_T_2  Winner_Quint_T_1) ///
		table("${outtex}${date}_Differences_by_Tercile_female.tex")  ///
		type(tex) ///
		title("Replicates Table A17 in Hussam et al. (2022b): Sample Restricted to Female Entrepreneurs") lab(chartopranked_female)	
	
	
/* The original code was as follows:
		
		ORIGINAL:
		forvalues i=1/3{
		gen Winner_Quint_T_`i'=Winner2*Quint_Rank_NS_Tercile_`i'
		}
		
		baltest3 if Survey_Version==1 , ///
		panela($panela1) ///
		panelb($panelb1) ///
		panelc($panelc1) ///
		paneld($paneld1) ///
		prehead1($prehead1) ///
		prehead2($prehead2) ///
		treatment( Winner_Quint_T_3  Winner_Quint_T_2  Winner_Quint_T_1) ///
		table("${outtex}${date}_Differences_by_Tercile.tex")  ///
		type(tex) ///
		title("Demographic Characteristics  by Tercile of Marginal Return Rank") lab(chartopranked)	
		
*/